<!doctype html>
<head>
<title>gnius</title>
</head>

<script src="http://trunk.gravity.com/gravity.js></script>
<script>
function html5(data){
  var meta = {};
  for (var item in data){
    
  }
  return meta;
};

function findNamePatterns(obj){
  var meta = {};
  for(var name in obj){
    var root = meta;
    name.split(/\b/).forEach(function(){
      root
    });
  }
  return meta;
}

var valuePatterns = {
  'string': {
    url: /^(\w+:)?\/\/([^\/?#]+)/,
    image: /\.(jpe?g)|(gif)|(png)$/,
    date: /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/,
    html: /<([a-z]+)[^>]>.+?<\/\1>/,
    number: /^-?\d+(\.\d+)?$\
  }
};


</script>




<script>

['world/funnypages',
 'world/funnypages/messages'].forEach(function(value, i, array){
  Gravity.get(value, function(data){
    console.log(data);
    $('body').append(html5(data));
  });
});

</script>
<body></body>